home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 4
/
Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso
/
Pearls
/
dev
/
Monitor
/
Snoopy
/
Scripts
/
memory.script
next >
Wrap
Text File
|
1993-06-14
|
1KB
|
29 lines
; this is an example Snoopy scriptfile that tracks down AllocMem()/FreeMem()
;
; this is actually a quite tricky example! see the notes below...
; you *MUST* hide CON from Snoopy, because this is where the Snoopy output
; is directed to (unless you use the OUTPUT option). Now, if you wouldn't hide
; CON, then there would come up an endless recursion :
;
; 1. AllocMem causes Snoopy to print out a message to the CON task
; 2. the CON task causes an AllocMem -> Goto step 1
;
hide=CON
; well, the Workbench (de)allocates seemingly without any reason at all. Well,
; if you trust the Workbench (as I do) then you can leave this out - otherwise
; you'll get LOADS of calls, I promise... (and miss the important ones, don't ya)
hide=Workbench
; now this is another candidate for hiding, because it really is not interesting
; to see what the input.device does, is it ?!
hide=input.device
; exec.library goes of course as does any other library - but see the note on
; the "hide=con" statement for some important details
base=exec,exec.library
watch=exec,-198,D0L/D1L/RD0L,AllocMem( Size = %ld Bytes, Type = %08lx ): %08lx
watch=exec,-210,A1L/D0L,FreeMem( At %08lx, Size = %ld Bytes )